package com.jacky.ws.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "redisson")
public class RedissonProperties {

    private int timeout = 3000;
    private String address = "redis://127.0.0.1:6379";
    private String password;
    private int connectionPoolSize = 5;
    private int connectionMinimumIdleSize = 2;
    private int slaveConnectionPoolSize = 250;
    private int masterConnectionPoolSize = 250;
    private String[] sentinelAddresses;
    private String masterName;
    private int database = 1;
}
